The <MATH> element is used to include math expressions in the current line. HTML math is powerful enough to describe the range of math expressions you can create in common word processing packages, as well as being suitable for rendering to speech. When rendering to fixed pitch text-only media, simple text graphics can be used for math symbols such as the integration sign, while other symbols can be rendered using their entity names.
ID
An SGML identifier used as the target for hypertext links or for naming particular elements in
associated style sheets. Identifiers are NAME tokens and must be unique within the scope of the current
document.
CLASS
This a space separated list of SGML NAME tokens and is used to subclass tag names. By
convention, class names are interpreted hierarchically, with the most general class on the left and the most
specific on the right, where classes are separated by a period.
For the MATH element, CLASS can be used to describe the kind of math expression involved. This
can be used to alter the way formulae are rendered, and to support exporting the expression to symbolic
math software. The class "chem" is useful for chemical formulae which use an upright font for
variables rather than the default italic font.
BOX
The presence of this attribute causes the user agent to draw a rectangular box around the
formulae.
<MATH> is legal within:
<A>, <ABBREV>, <ACRONYM>, <ADDRESS>, <AU>, <B>,
<BANNER>, <BIG>, <BODYTEXT>, <CAPTION>, <CITE>,
<CODE>, <CREDIT>, <DD>, <DEL>, <DFN>, <DIV>, <DT>,
<EM>, <FIGTEXT>, <FN>, <FORM>, <H1>, <H2>, <H3>,
<H4>, <H5>, <H6>, <I>, <INS>, <KBD>, <LANG>, <LH>,
<LI>, <NOTE>, <P>, <PERSON>, <Q>, <S>, <SAMP>,
<SMALL>, <STRONG>, <SUB>, <SUP>, <TD>, <TH>, <TT>,
<U>, <VAR>
The following markup can be used within <MATH>
<ABOVE>, <ARRAY>, <B>, <BAR>, <BELOW>, <BOX>,
<BT>, <DDOT>, <DOT>, <HAT>, <ROOT>, <SQRT>, <SUB>,
<SUP>, <T>, <TILDE>, <VEC>
<MATH>∫_a_^b^{f(x)<OVER>1+x} dx</MATH>